package com.atguigu.crowd.mapper;

import com.atguigu.crowd.entity.Sheng;
import com.atguigu.crowd.entity.ShengExample;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ShengMapper {
    int countByExample(ShengExample example);

    int deleteByExample(ShengExample example);

    int deleteByPrimaryKey(Integer shengid);

    int insert(Sheng record);

    int insertSelective(Sheng record);

    List<Sheng> selectByExample(ShengExample example);

    Sheng selectByPrimaryKey(Integer shengid);

    int updateByExampleSelective(@Param("record") Sheng record, @Param("example") ShengExample example);

    int updateByExample(@Param("record") Sheng record, @Param("example") ShengExample example);

    int updateByPrimaryKeySelective(Sheng record);

    int updateByPrimaryKey(Sheng record);
    
    /**
     * 分页，有关键词就是全局可根据关键词查询的分页，不带关键词或者关键词为空就是纯分页
     * @param keyWord
     */
    List<Sheng> seleShengByKeyword(String keyWord);
    
    /**
     * 根据省名称判断省份是否已经存在了，存在了就不允许再添加了，
     * @return
     */
    int seleByshengName(String shengName);
    
    
}































